package cn.lyjuan.android.demofive.system.permission;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import cn.lyjuan.android.demofive.R;
import cn.lyjuan.android.mylibrary.frame.load.impl.BluetoothLoadImpl;
import cn.lyjuan.android.mylibrary.frame.load.impl.FragmentLoadImpl;
import cn.lyjuan.android.mylibrary.frame.load.impl.LocationLoadImpl;
import cn.lyjuan.android.mylibrary.frame.load.impl.NetLoadImpl;

/**
 * Created by chad on 18-3-4.
 */

public class PermissionActivity extends AppCompatActivity
{
    PermissionFragment perFrag = null;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.system_permission_activity);

        perFrag = new PermissionFragment();

        permissionCheck();
    }

    private void permissionCheck()
    {
        FragmentLoadImpl load = new FragmentLoadImpl(this, perFrag, R.id.main_fragment);
        load.addLoads(new NetLoadImpl(this));
        load.addLoads(new LocationLoadImpl(this));
        load.addLoads(new BluetoothLoadImpl(this));

        load.inflate();
    }
}
